﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PARTE_DE_MANTENIMIENTO.aspx.cs" Inherits="PC_AYUDA.Formulario_web16" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 100%;
            background-image: url('Account/imagenes/PARTEMANTE.jpg');
        }
        .style4
        {
            height: 94px;
        }
        .style5
        {
            height: 102px;
        }
        .style6
        {
            height: 206px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style3">
        <tr>
            <td class="style4">
                <asp:Label ID="ID_MANTENIMIENTO" runat="server" Text="ID_MANTENIMIENTO"></asp:Label>
            </td>
            <td class="style4">
                <asp:TextBox ID="TextBox1" runat="server" Height="43px" Width="292px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
                <asp:Label ID="ID_PARTE" runat="server" Text="ID_PARTE"></asp:Label>
            </td>
            <td class="style5">
                <asp:TextBox ID="TextBox2" runat="server" Height="47px" Width="296px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="PARTE" runat="server" Text="PARTE"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox3" runat="server" Height="49px" Width="291px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID_MANTENIMIENTO" DataSourceID="SqlDataSource1" 
        EmptyDataText="No hay registros de datos para mostrar." Width="717px">
        <Columns>
            <asp:BoundField DataField="ID_MANTENIMIENTO" HeaderText="ID_MANTENIMIENTO" 
                ReadOnly="True" SortExpression="ID_MANTENIMIENTO" />
            <asp:BoundField DataField="ID_PARTE" HeaderText="ID_PARTE" 
                SortExpression="ID_PARTE" />
            <asp:BoundField DataField="PARTE" HeaderText="PARTE" SortExpression="PARTE" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PC-PARTESConnectionString %>" 
        DeleteCommand="DELETE FROM [PARTE_MANTENIMIENTO] WHERE [ID_MANTENIMIENTO] = @ID_MANTENIMIENTO" 
        InsertCommand="INSERT INTO [PARTE_MANTENIMIENTO] ([ID_MANTENIMIENTO], [ID_PARTE], [PARTE]) VALUES (@ID_MANTENIMIENTO, @ID_PARTE, @PARTE)" 
        ProviderName="<%$ ConnectionStrings:PC-PARTESConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID_MANTENIMIENTO], [ID_PARTE], [PARTE] FROM [PARTE_MANTENIMIENTO]" 
        UpdateCommand="UPDATE [PARTE_MANTENIMIENTO] SET [ID_PARTE] = @ID_PARTE, [PARTE] = @PARTE WHERE [ID_MANTENIMIENTO] = @ID_MANTENIMIENTO">
        <DeleteParameters>
            <asp:Parameter Name="ID_MANTENIMIENTO" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="ID_MANTENIMIENTO" Type="String" />
            <asp:Parameter Name="ID_PARTE" Type="String" />
            <asp:Parameter Name="PARTE" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="ID_PARTE" Type="String" />
            <asp:Parameter Name="PARTE" Type="String" />
            <asp:Parameter Name="ID_MANTENIMIENTO" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <br />
    <br />
</asp:Content>
